#include<stdio.h>
#include<string.h>
char* tmp[1024];
int main()
{
   char arr[1024];
   fgets(arr,1024,stdin);
   int i = strlen(arr);
   arr[i-1] = '\0';
   i = 0;
   tmp[i] = strtok(arr," ");
   //while(tmp[i++] = strtok(NULL," "));这样可以写但是代码的可读性很差
   while(tmp[i])
   {
      tmp[i+1] = strtok(NULL," ");
      i++;
   }
   i =0;
   while(tmp[i])
   {

     printf("%s\n ",tmp[i]);
     i++;
   }
   return 0;
}
